# ZeroDivisionError
# ArithmeticError
# Exception
# BaseException
# object


# 可以在 声明的时候try
# 也可以在调用的时候try

# def test(x):
#     try:
#         print(10 / x)
#     except Exception as e:
#         print(e.args)
#
#
# test(0)


def test1(x):
    print(10 / x)


try:
    test1(0)
except Exception as e:
    print(e.args)
